package microframe.event
{
	import flash.events.Event;
	
	/**
	 * @author winnie
	 */	
	public class MicroEvent extends Event
	{
		
		// 데이터
		private var _data : Object;
		
		
		/**
		 * @return [읽기전용] 이벤트 데이터 오브젝트 
		 */
		public function get data():Object
		{
			return _data;
		}
		
		/**
		 * @param type : EventType에 정의된 이벤트
		 * @param data : user data
		 * @param bubbles : 버블단계
		 * @param cancelable
		 */		
		public function MicroEvent(type:String, data:Object=null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			_data = data;
		}
		
		
		
		/**
		 * @return  MicroEvent(type:String, data:Object=null, bubbles:Boolean=false, cancelable:Boolean=false)
		 */		
		override public function clone():Event
		{
			return new MicroEvent( this.type, this._data, this.bubbles, this.cancelable );
		}
	}
}